<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
</head>
<body>
    <div></div>
</body>
<script>

    function isArrayLike( obj ) {
        if ( Object.prototype.toString.call( obj ) == '[object Array]' ) {
            return true;
        }

        var length = 'length' in obj && obj.length;
        return typeof length === 'number' && length >= 0;
    }
    var divs=document.querySelectorAll("div")
    console.log(isArrayLike(divs));
</script>
</html>